import { del, get } from '../../../config/axios'
import { IResponse } from '../../../config/axios/type'

enum TEXAMWRONGRECORD_URL {
  LISTALL = '/wrong/listAll',
  DELETE = '/wrong/deleteById'
}

export default {
  listAll: async () => get<IResponse>({ url: TEXAMWRONGRECORD_URL.LISTALL }),
  delete: async (id: number) => del<IResponse>({ url: TEXAMWRONGRECORD_URL.DELETE + '/' + id })
}
